package com.oo.abstractAndInterface_6.bicycle;

/**
 * MotorizedBicycle--${description}
 *
 * @author: Jovi
 * @createTime: 2017-04-13 11:31
 **/
public class MotorizedBicycle extends Bicycle{

    private String motoName;



    public MotorizedBicycle(String name, String color) {
        super(name, color);
    }

    public MotorizedBicycle(String name, String color, int wheelNum, int seatNum, String motoName) {
        super(name, color, wheelNum, seatNum);
        this.motoName = motoName;
    }

    @Override
    public void run() {
        System.out.println(this.getColor()+"of"+this.getName()+"："+"use"+this.getMotoName()+"electric drive");
    }

    public String getMotoName() {
        return motoName;
    }

    public void setMotoName(String motoName) {
        this.motoName = motoName;
    }
}

